﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YiYiTong.Rocket.Model
{
    public class AccLoginModel
    {
        public AccLoginModel()
        {
            mobile = "";
            membername = "";
            token = "";
        }
        public long uid { get; set; }
        public string mobile { get; set; }
        public string membername { get; set; }
        public short memberlevel { get; set; }
        /// <summary>
        /// 是否设置支付密码 0 未设置 1 已设置
        /// </summary>
        public int issetpaypwd { get; set; }
        /// <summary>
        /// 是否有过关注品牌、分类 0未关注  1已关注
        /// </summary>
        public int isfollowed { get; set; }
        public string token { get; set; }

        public List<MemberLevelModel> levelList { get; set; }
    }

    public class WxAccLoginModel : AccLoginModel
    {
        public WxAccLoginModel()
        {
            accessToken = "";
            openId = "";
        }
        /// <summary>
        /// 是否微信首次登录 0 否 1 是
        /// </summary>
        public int isFirstLogin { get; set; }
        /// <summary>
        /// 微信登录token
        /// </summary>
        public string accessToken { get; set; }
        public string openId { get; set; }
    }
}
